\name{ct_p_progression}
\alias{ct_p_progression}
\title{
  Create a progress chart for a League.
}
\description{
  This function plots a progress chart from a crosstable and a corresponding match schedule table.
}
\usage{
  ct_p_progression(crosstab, matsch, other="all", graph_type="lines", legend=FALSE, savePDF=FALSE,...)
}
\arguments{
  \item{crosstab}{
    a valid crosstab provided as a data frame or as a matrix
  }
  \item{matsch}{
    a valid table containing the match schedules for each day
  } 
  \item{other}{
    determines what will be included in the plot. takes vectors of any number of team names,
  } 
  \item{graph_type}{
    \sQuote{lines} by default, \sQuote{point} for adding points indicating each match day.
  }
  \item{legend}{
    add a legend outside the ploting area, otherwise club names will be located as right-hand side axis labels
  }
  \item{savePDF}{
    if provided, stores a PDF to the given path
  }
  \item{...}{
    any other argument that can be parsed by ploints() or lines()
  }
}
\details{
  Exact identity of club names of both tables has to be asured. As default the funtion will draw a diagram 
  visualizing the progress of all teams with simple lines indicating the position for each match day. 
  You may want to run this function only for a small number of teams (by making use of the 'other' argument)
  due to clarity reasons.
}
\examples{
  # Load and check the crosstab
  
  data(bundesliga_12_13)
  ct_check(bundesliga_12_13)
  
  # and load the match schedule 
  
  data(match_schedule_bl_12_13)
  
  # plot the progress chart and save it as pdf
  
  ct_p_progression(bundesliga_12_13, match_schedule_bl_12_13, savePDF="progress.pdf")
  
}
\keyword{ misc }